﻿using System;

namespace 撤销恢复操作
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            var works = new Work<Grahpic>();
            //works.DoSomething(new Grahpic("画三角形第一个边"));
            //works.DoSomething(new Grahpic("画三角形第二个边"));
            //works.DoSomething(new Grahpic("画三角形第三个边"));
            //works.DoSomething(new Grahpic("画圆心"));
            //works.DoSomething(new Grahpic("画圆心"));
            //works.DoSomething(new Grahpic("画一半圆"));
            //works.DoSomething(new Grahpic("画圆完成"));
            //works.ReDo();
            //works.ReDo();
            //works.ReDo();
            //works.ReDo();

            //works.DoSomething(new Grahpic("画正方形第一个边"));
            //works.DoSomething(new Grahpic("画正方形第二个边"));
            //works.DoSomething(new Grahpic("重新画圆"));
            //works.ReDo();
            Class1 st = new Class1();

            Class1.stop();



        }
    }
}
